	.section ".bootsetup", "ax"
	.code16
	.global _start_setup
	.type _start_setup, @function
_start_setup:
	movw %cs, %ax
	movw %ax, %ds
	movw %ax, %es

	# 清屏并设置背景色
	mov $0x0600, %ax	# AH=0x06 (滚动窗口), AL=0x00 (清屏)
	mov $0x07, %bh		# 白底黑字属性
	mov $0x00, %cx		# 左上角 (0,0)
	mov $0x184f, %dx	# 右下角 (0,0)
	int $0x10			# 调用BIOS中断

	# 将光标移到屏幕第一行第一列
	mov $0x02, %ah		# BIOS 设置光标位置功能号
	mov $0x00, %bh		# 页号 0
	mov $0x00, %dh		# 行号 0 (第一行)
	mov $0x00, %dl		# 列号 0 (第一列)
	int $0x10			# 调用BIOS中断

	movw $setup_msg, %ax
	movw %ax, %bp
	movw $0x01301, %ax
	movw $0x0c, %bx
	movw $16, %cx
	movb $0, %dl
	int  $0x010

loop:
	jmp loop

setup_msg:
	.ascii "setup is running\0"
